home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 15 Orphan Computers / DDTED.DOC < prev    next >
Text File  |  2019-04-13  |  20KB  |  793 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                               Disk Doctor C16 & Plus/4
  25.                                           
  26.                         Commodore Business Machines Limited
  27.                                        CANADA
  28.                                     October 1984
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                                                Disk Doctor Documentation
  68.  
  69.  
  70.  
  71.  
  72.  
  73.                   Disk Doctor Instruction Manual
  74.  
  75.  
  76.                   Table of Contents
  77.  
  78.               Contents                                     Page
  79.  
  80.                1.0    Introduction  ...................     3
  81.  
  82.                2.0    Loading and Running Instructions      4
  83.  
  84.                3.0    Commands  .......................     5
  85.  
  86.                       3.A  Change byte under cursor  ..     5
  87.  
  88.                       3.B  Text mode  .................     5
  89.  
  90.                       3.C  Drive to access  ...........     6
  91.  
  92.                       3.D  Unit to access  ............     6
  93.  
  94.                       3.E  Block  .....................     7
  95.  
  96.                       3.F  Increment sector............     7
  97.  
  98.                       3.G  Decrement sector............     7
  99.  
  100.                       3.H  Quit  ......................     8
  101.  
  102.                       3.I  Stop  ......................     8
  103.  
  104.                       3.J  Jump  ......................     8
  105.  
  106.                       3.K  Next  ......................     8
  107.  
  108.                       3.L  Rewrite sector  ............     9
  109.  
  110.                       3.M  Print the sector  ..........     9
  111.  
  112.                       3.N  Help  ......................     10
  113.  
  114.                       3.O  F1  ........................     10
  115.  
  116.                       3.P  F4  ........................     10
  117.  
  118.                       3.Q  F2  ........................     11
  119.  
  120.                       3.R  F5  ........................     11
  121.  
  122.                       3.S  F7  ........................     11
  123.  
  124.                4.0    Examples  .......................     12
  125.  
  126.  
  127.  
  128.  
  129.                                                                   page 2
  130.  
  131.  
  132.  
  133.                                                Disk Doctor Documentation
  134.  
  135.  
  136.  
  137.  
  138.  
  139.                1.0    Introduction
  140.  
  141.  
  142.            The objective of the program 'Disk Doctor' is to  allow  easy
  143.            manipulation of data  and  correction  of  errors  on  floppy
  144.            diskettes.  The operation of the  program  has  intentionally
  145.            been kept simple to allow more users the ability to make  use
  146.            of it's capabilities.  Although the use of  the  program  has
  147.            been kept simple the data that can be altered on  the  floppy
  148.            is  in  a  specific  order.   One  of  the  best  sources  of
  149.            information about how data is written and stored on a  floppy
  150.            diskette is the manual which came with your disk drive.
  151.  
  152.            This program has the power  to  ruin  diskettes  as  well  as
  153.            reclaim information  from them.  It is for this  reason  that
  154.            we strongly suggest you become familiar  with  the  directory
  155.            structure and file chaining format covered in your disk drive
  156.            manual.
  157.  
  158.            Throughout this manual you will see '[return]' this indicates
  159.            that the return key should be depressed.
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                   page 3
  196.  
  197.  
  198.  
  199.                                                Disk Doctor Documentation
  200.  
  201.  
  202.  
  203.  
  204.  
  205.                2.0    Loading and Running Instructions
  206.  
  207.  
  208.            'DISK DOCTOR.TED' will work on the Commodore 16 and Commodore
  209.            Plus/4 computers and is written in machine  language  with  a
  210.            one line basic driver.  In this way loading is very simple as
  211.            follows :
  212.  
  213.                       DLOAD "DISK DOCTOR.TED"  [return]
  214.  
  215.            This statement will load the program into  the  memory  space
  216.            normally occupied by basic programs.  If you were to ask  for
  217.            a 'LIST [return]' you would see :
  218.  
  219.                       16 sys (4128)
  220.  
  221.            To start 'Disk Doctor' type in 'RUN [return].'  At this point
  222.            you will see a screen with the title of the  program,  a  few
  223.            instructons and you are ready to go.
  224.  
  225.            There are several commands and functions that Disk Doctor can
  226.            perform.  If  you  are  just  getting  started  and  wish  to
  227.            experiment,  use  a  diskette  which  does  not  contain  any
  228.            valuable information.  Altering information on  the  diskette
  229.            can corrupt the entire diskette.
  230.  
  231.            The commands in section 3.0 of this manual will  detail  what
  232.            each of the commands are capable of doing.  In every  command
  233.            as a precaution the STOP key will exit  the  command  without
  234.            the function of the command taking place.
  235.  
  236.  
  237.  
  238.            NOTE : Disk Doctor can irreparably modify a diskette's data.
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                   page 4
  262.  
  263.  
  264.  
  265.                                                Disk Doctor Documentation
  266.  
  267.  
  268.  
  269.  
  270.  
  271.                3.0    Commands
  272.  
  273.  
  274.                3.A  '@'  Change byte under cursor
  275.  
  276.            The change byte under cursor is envoked   by  depressing  the
  277.            '@' key.
  278.  
  279.            When the change byte command is called a prompt is printed in
  280.            the message buffer under the data box as follows :
  281.  
  282.                       CHANGE BYTE NEW VALUE [D/$H]=
  283.  
  284.            The program now wants you to input  either  a  decimal  value
  285.            between 0-255 [return] or a hexidecimal value  between  00-ff
  286.            preceeded by a '$' followed by [return].  After inputting the
  287.            value the program will change that byte under the  cursor  on
  288.            the screen, change this character's color to red  and  change
  289.            the byte in the disk drive buffer.  This change will  not  be
  290.            written to the floppy diskette until the execution of the  'R
  291.            rewrite' command discussed later in section 3.L.  The  Change
  292.            byte command can be exited with the use of the STOP key.
  293.  
  294.  
  295.  
  296.                3.B  'T'  Text mode
  297.  
  298.            The text mode is envoked by depressing the 't' key.
  299.  
  300.            When the text mode command is called the screen border  color
  301.            becomes orange and a prompt is printed in the message  buffer
  302.            under the data box as follows :
  303.  
  304.                       TEXT MODE : Press Return to Exit
  305.  
  306.            The program now allows you to alter the data by simply typing
  307.            on the keyboard.  Data may be typed in upper  case  or  lower
  308.            case with reverse on or off.  You may use the cursor keys  to
  309.            position the cursor anywhere in the data box.  As  each  byte
  310.            is typed the byte is changed under the cursor on the  screen,
  311.            that character's color is changed to red and the byte in  the
  312.            disk drive buffer is changed. As in the Change  byte  command
  313.            this change will not be written to the floppy diskette  until
  314.            the execution of the 'R rewrite' command discussed  later  in
  315.            section 3.L.  After striking the [return]  key  to  exit  the
  316.            Text mode the message is removed  from  the  screen  and  the
  317.            border color returned to purple.  The Text mode can  also  be
  318.            exited by using the STOP key.
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                   page 5
  328.  
  329.  
  330.  
  331.                                                Disk Doctor Documentation
  332.  
  333.  
  334.  
  335.  
  336.  
  337.                3.0    Commands
  338.  
  339.  
  340.                3.C  'D'  Drive to access
  341.  
  342.            The Drive command is envoked by depressing the 'd' key.
  343.  
  344.            When the drive command is called the cursor will be  flashing
  345.            on the number to the right of Drive in the upper  information
  346.            box.  At this point you have several options.  One option  is
  347.            to enter a '0' or a '1'  to  specify  the  drive  to  access.
  348.            Another option is to enter 'u' to change the  unit  that  the
  349.            program will access.  The 'u' command is detailed in the next
  350.            section 3.D.  Help can also be obtained from the drive option
  351.            by depressing the 'HELP' key.  If the number already contains
  352.            the value you require then simply strike the [return] key and
  353.            the program will go to the disk drive, get the data from this
  354.            block and display it on the screen.  The program can also  be
  355.            exited by using the STOP key from the drive command.
  356.  
  357.  
  358.  
  359.                3.D  'U'  Unit to access
  360.  
  361.            The Unit command is envoked by depressing the 'u' key.
  362.  
  363.            When the unit command is called the cursor will  be  flashing
  364.            on the number to the right of 'Unit' near the bottom  of  the
  365.            screen.  The unit can be any number from 8 to  15  inclusive.
  366.            If you have a second drive connected  as  unit  9  then  this
  367.            command will instruct  'Disk  Doctor'  to  access  that  disk
  368.            drive.  If the number already contains the value you  require
  369.            then simply strike the [return] key.
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                   page 6
  394.  
  395.  
  396.  
  397.                                                Disk Doctor Documentation
  398.  
  399.  
  400.  
  401.  
  402.  
  403.                3.0    Commands
  404.  
  405.  
  406.                3.E  'B'  Block
  407.  
  408.            The Block command is envoked by depressing the 'b' key.
  409.  
  410.            When the block command is called the cursor will be  flashing
  411.            on the first character of the two digit number to  the  right
  412.            of 'Track' in the upper information box.  The program is  now
  413.            waiting for you to input a track number.  After the track has
  414.            been input the cursor immediately  moves  to  the  two  digit
  415.            number to the right of 'Sector' in the upper information box.
  416.            The program is now waiting for you to input a sector  number.
  417.            When the block has been input  (ie.  Track  and  Sector)  the
  418.            program will go to the disk drive , get the data from the new
  419.            block and display it on the screen.  The program can also  be
  420.            exited by using the STOP key while  inputting  the  track  or
  421.            sector.
  422.  
  423.  
  424.  
  425.                3.F  '+'  Increment sector
  426.  
  427.            The Increment sector command is envoked by depressing the '+'
  428.            key.
  429.  
  430.            When the increment sector command is called the you will  see
  431.            the two digit number to the right of 'Sector'  in  the  upper
  432.            information box  become  incremented  by  one.   After   this
  433.            increment the program will go to the disk  drive  ,  get  the
  434.            data from the new block and display it on the  screen.   This
  435.            command is useful if you want to  look  through  all  of  the
  436.            sectors in a particular track.
  437.  
  438.  
  439.  
  440.                3.G  '-'  Decrement sector
  441.  
  442.            The Decrement sector command is envoked by depressing the '-'
  443.            key.
  444.  
  445.            When the decrement sector command is called the you will  see
  446.            the two digit number to the right of 'Sector'  in  the  upper
  447.            information box  become  decremented  by  one.   After   this
  448.            decrement the program will go to the disk  drive  ,  get  the
  449.            data from the new block and display it on  the  screen.   The
  450.            decrement command will only decrement the sector to  a  value
  451.            of 00.  This command is useful if you want  to  look  through
  452.            all of the sectors in a particular track.
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                                                                   page 7
  460.  
  461.  
  462.  
  463.                                                Disk Doctor Documentation
  464.  
  465.  
  466.  
  467.  
  468.  
  469.                3.0    Commands
  470.  
  471.  
  472.                3.H  'Q'  Quit
  473.  
  474.            The Quit command is envoked by depressing the 'q' key.
  475.  
  476.            When the quit function is called all of the  disk  files  are
  477.            closed and control is returned to direct basic mode.
  478.  
  479.  
  480.  
  481.                3.I  'STOP'
  482.  
  483.            The Stop command is envoked by depressing the 'STOP' key.
  484.  
  485.            This command is identical to the Quit command.  When the stop
  486.            function is called all of  the  disk  files  are  closed  and
  487.            control is returned to the direct basic mode.
  488.  
  489.  
  490.  
  491.                3.J  'J'  Jump
  492.  
  493.            The Jump command is envoked by depressing the 'j' key.
  494.  
  495.            When the Jump command is called the track and sector for  the
  496.            block are read from the byte under the cursor  and  the  next
  497.            byte respectively. The program will go to the  disk  drive  ,
  498.            get the data from the new block and display it on the screen.
  499.            This command is useful when following the forward links of  a
  500.            file starting from a directory entry.
  501.  
  502.  
  503.  
  504.                3.K  'N'  Next
  505.  
  506.            The Next command is envoked by depressing the 'n' key.
  507.  
  508.            When the Next command is called the track and sector for  the
  509.            block are read from byte  0  and  byte  1  respectively.  The
  510.            program will go to the disk drive , get the data from the new
  511.            block and display it on the screen.   This  command  is  very
  512.            useful when following the forward links of a file.
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                   page 8
  526.  
  527.  
  528.  
  529.                                                Disk Doctor Documentation
  530.  
  531.  
  532.  
  533.  
  534.  
  535.                3.0    Commands
  536.  
  537.  
  538.                3.K  'R'  Rewrite Block to Floppy
  539.  
  540.            The Rewrite command is envoked by depressing the 'r' key.
  541.  
  542.            When the change byte command is called a prompt is printed in
  543.            the message buffer under the data box as follows :
  544.  
  545.                       REWRITE BLOCK  ARE YOU SURE [y/n]
  546.  
  547.            The program is now waiting for you to answer 'y' to continue.
  548.            If you answer yes to this prompt the data from the  data  box
  549.            will be written to the floppy diskette in it's  present  form
  550.            whether  it  was  altered  or  not.    Of   course   if   the
  551.            write-protect notch is covered the attempt to  write  to  the
  552.            disk will fail.  Depressing any  key  (including  the  'STOP'
  553.            key) but the 'y' key will abort the Rewrite function.
  554.  
  555.  
  556.  
  557.                3.M  'P'  Print the sector
  558.  
  559.            The Print command is envoked by depressing the 'p' key.
  560.  
  561.            When the print command is called a prompt is printed  in  the
  562.            message buffer under the data box as follows :
  563.  
  564.                       HEX DUMP TO PRINTER    ? [y/n]
  565.  
  566.            The program is now waiting for you to answer 'y' to continue.
  567.            If you answer yes to this prompt the printer will  print  the
  568.            hexidecimal values and of the data box as well  as  an  ASCII
  569.            representation of the data.  Pressing any key other than  the
  570.            'y' key will abort the print function.
  571.  
  572.            If there is a problem with the printer (ie. not connected  or
  573.            turned off) a prompt will be printed in  the  message  buffer
  574.            under the data box as follows :
  575.  
  576.                       NO PRINTER CONNECTED
  577.  
  578.            In this case depressing  any  key  will  return  you  to  the
  579.            command mode.
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                   page 9
  592.  
  593.  
  594.  
  595.                                                Disk Doctor Documentation
  596.  
  597.  
  598.  
  599.  
  600.  
  601.                3.0    Commands
  602.  
  603.  
  604.                3.N  'HELP' Help
  605.  
  606.            The Help function is envoked by depressing the 'HELP' key.
  607.  
  608.            When the Help function is called a screen full of information
  609.            containing a quick summary will appear.  Depressing  any  key
  610.            at this point will return you to where you left.
  611.  
  612.  
  613.  
  614.                3.O  'F1' Function Key
  615.  
  616.            The F1 function is envoked by depressing the 'F1' key.
  617.  
  618.            When the F1 function is called, this will cause  the  program
  619.            to read and display Track 18 Sector 00.  This is a quick  way
  620.            to display the first block of the directory file chain.
  621.  
  622.  
  623.  
  624.                3.P  'F4' Function Key
  625.  
  626.            The F4 function is envoked by depressing the 'F4' key.
  627.  
  628.            When the F1 function is called, this will cause  the  program
  629.            to read and display Track 18 Sector 01.  This is a quick  way
  630.            to display the second block of the directory file chain.
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                                                                  page 10
  658.  
  659.  
  660.  
  661.                                                Disk Doctor Documentation
  662.  
  663.  
  664.  
  665.  
  666.  
  667.                3.0    Commands
  668.  
  669.  
  670.                3.Q  'F2' Function Key
  671.  
  672.            The F2 function is envoked by depressing the 'F2' key.
  673.  
  674.            When the F2 function is called, this will cause  the  program
  675.            to read and display Track 01 Sector 00.  This is a quick  way
  676.            to display the inner most track on a 1541 disk drive.
  677.  
  678.  
  679.  
  680.                3.R  'F5' Function Key
  681.  
  682.            The F5 function is envoked by depressing the 'F5' key.
  683.  
  684.            When the F5 function is called, this will cause  the  program
  685.            to read and display Track 35 Sector 00.  This is a quick  way
  686.            to display the outer most track on a 1541 disk drive.
  687.  
  688.  
  689.  
  690.                3.S  'F7' Function Key
  691.  
  692.            The F7 function is envoked by depressing the 'F7' key.
  693.  
  694.            When the F7 function is called, this will put three  carriage
  695.            returns in the keyboard buffer.  This is useful to accept the
  696.            defaults from the screen when inputting the block information
  697.            (ie. track and sector).
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.                                                                  page 11
  724.  
  725.  
  726.  
  727.                                                Disk Doctor Documentation
  728.  
  729.  
  730.  
  731.  
  732.  
  733.                4.0     Examples
  734.  
  735.  
  736.            The following are examples of how the 'DISK DOCTOR.TED' could
  737.            aid in manipulating and reclaiming data on a diskette.
  738.  
  739.  
  740.  
  741.                Unscratch a scratched file
  742.  
  743.  
  744.            The first  example  is  how  to  unscratch  an  inadvertantly
  745.            scratched file.  Refer to the disk drive manual  for  details
  746.            on the file type byte in the directory entry.
  747.  
  748.            After a file is scratched the file type byte in the directory
  749.            entry is changed to a value of zero (0).  All of the data  in
  750.            that file remains on the disk untouched until another file  i
  751.            written on the disk.  So if you have just  scratched  a  file
  752.            and have not written another to the disk the  following  will
  753.            reclaim the file as good as new.
  754.  
  755.            The file type byte need only be changed back  to  the  number
  756.            which represents it's file type (ie. $81 seq,  $82  prg,  $83
  757.            usr, $84 rel) and then VALIDATE  the  disk  to  allocate  the
  758.            blocks in the bit avalability map (BAM) and the file has been
  759.            recovered.
  760.  
  761.  
  762.  
  763.                Change Diskette Name
  764.  
  765.  
  766.            The name of the diskette is stored in the directory track  18
  767.            sector 00 of a 1541 disk drive.  Using 'DISK DOCTOR.TED'  you
  768.            can modify the title that the disk  was  given  when  it  was
  769.            formatted.
  770.  
  771.            Use the program to display track 18 sector  00  and  position
  772.            the cursor to byte 144 which  is  the  beginning  of  the  16
  773.            character diskette name.  Enter the TEXT mode and type in the
  774.            new diskette name.  When you have finished altering the  name
  775.            depress [return] to exit the TEXT mode.  To make this  change
  776.            permanent use the REWRITE function descirbed in section 3.L.
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.                                                                  page 12
  790.  
  791.  
  792.  
  793.